﻿namespace Arms.Persistence.Modules.Products.Mappings
{
    using Arms.Domain.Modules.Products;
    using System.Data.Entity.ModelConfiguration;

    internal class ProductClassMap : EntityTypeConfiguration<ProductClass>
    {
        public ProductClassMap()
            : base()
        {
            HasMany(x => x.Products).WithRequired(x => x.ProductClass).HasForeignKey(x => x.ProductClassID);
        }
    }
}
